import request from "@/utils/request";

//获取公司信息
export function getCompany() {
  return request.get(`/get/company/list`);
}
//获取关键字信息
export function getKeyword(label) {
  return request.get(`/get/looklike/keyword?word=${label}`);
}
//获取系统标签信息
export function getSyslabel(query) {
  return request.get(`/get/looklike/syslabel?label=${query}`);
}
//获取省市信息
export function getAreaList() {
  return request.get(`/get/area/list`);
}
//获取库存信息
export function getCustomerList(searchData) {
  return request.post(`/get/customer/list`, searchData);
}
//获取数据库存详情
export function getCallList(searchData) {
  return request.get(`/get/customer/call/history`, { params: searchData });
}

//获取导入数据管理
export function getImportList(searchData) {
  return request.post(`/get/import/list`, searchData);
}

//锁定/解锁数据项
// data => Object {fileId:xxx,"enable":1 // 2:锁定 1：解锁}
export function enableFile(data) {
  return request.post("/enable/import/data", data);
}

//删除数据
// data => Object {fileId:xxx}
export function deleteFile(data) {
  return request.post("/delete/import/data", data);
}
